//
// Created by 原帅 on 2022/11/5.
//

#ifndef R_RPROCESSOR_H
#define R_RPROCESSOR_H

#include "vector"
#include "RProcIF.h"

class RProcessor {

protected:
    std::vector<RProcIF*> processors;
    bool nothingTodoLogFlag = true;
    long nothingTodoUSleepCount = 1000;

public:
    int process();

    int registerProc(RProcIF* rProcIf);

    long getNothingTodoUSleepUsec() const;

    void setNothingTodoUSleepUSec(long usec);
};


#endif //R_RPROCESSOR_H
